package com.yhy.common.core.model;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 上下文的用户
 */
@ApiModel("用户上下文对象")
@Data
public class ContextUser {

    @ApiModelProperty(value = "id", example = "123")
    private Long id;

    @ApiModelProperty(value = "客户端id", example = "swagger")
    private String clientId;

    @ApiModelProperty(value = "用户名", example = "zhangsan")
    private String username;

    @ApiModelProperty(value = "账号未过期", example = "true")
    private Boolean accountNonExpired;

    @ApiModelProperty(value = "账号未锁定", example = "true")
    private Boolean accountNonLocked;

    @ApiModelProperty(value = "凭证未过期", example = "true")
    private Boolean credentialsNonExpired;

    @ApiModelProperty(value = "启用", example = "true")
    private Boolean enabled;

}
